package neiltwist.cfd.akka;

import java.awt.BorderLayout;
import java.awt.Dimension;

import javax.swing.JFrame;

public class WindowImpl {
	
	private JFrame frame;
	
	
	public WindowImpl(String name) {
		setFrame(new JFrame(name));
	}
	
	public WindowImpl() {
		setFrame(new JFrame("DEFAULT"));
	}
	
	 public JFrame getFrame() {
		return frame;
	}

	private void setFrame(JFrame frame) {
		this.frame = frame;
	}

	/**
     * Create the GUI and show it.  For thread safety,
     * this method should be invoked from the
     * event-dispatching thread.
     */
    public void showGUI() {
//	public static void main(String[] args) {
        //Create and set up the window.
//        JFrame frame = new JFrame("NCFD");
        getFrame().setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
 

        
        getFrame().setPreferredSize(new Dimension(612, 612));
        
//        frame.add(new Image());
 
        //Display the window.
        getFrame().pack();
        getFrame().setVisible(true);

    }


}
